from Browser import *
import unittest

class TestBaidu(unittest.TestCase):

    def test_search_key_selenium(self):
        search_key = "selenium"
        baidu_search(seaarch_key)
        self.assertEqual(Browser.driver.title,search_key+"_百度搜索")

    def test_search_key_unttest(self):
        search_key = "unittest"
        baidu_search(search_key)
        self.assertEqual(Browser.driver.title,search_key+"_百度搜索")
